﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ObserverPattern
{
    public abstract class DingYueZhe
    {
        public DingYueZhe()
        {
        }
        public DingYueZhe(string name)
        {
            this.name = name;
        }
        protected string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }
        public virtual void Update(string name, string status)
        {
            Console.WriteLine($"{name}的提醒，{status}");
        }
    }
}
